package com.hong.chapter7;

/**
 * this 锁
 */
public class SynchronizedTest {

    private final static Object LOCK = new Object();

    public static void main(String[] args) {
        Runnable runnable= ()->{
            synchronized (LOCK){
                try {
                    Thread.sleep(200_000);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }

            }
        };

    }
}
